<template>
  <input type="text" @input="onInput">
</template>

<script>
export default {
  props: ['username'],
  methods: {
    onInput (e) {
      this.$emit('update:username', e.target.value)
    }
  },
  data () {
    return {

    }
  }
}
</script>